
def has_no_e(word):
    for letter in word:
        if letter == 'e':
            return False
    return True


def avoid(word,aviod_str):
    for letter in word:
        if letter in aviod_str:
            return False
    return True
            


def avoid_word_num(fin, aviod_str):
    fin.seek(0)
    count = 0
    for line in fin:
        word = line.strip()
        if avoid(word, aviod_str):
            count = count + 1

    return count
